'''
@Author       : 冯浩
@Date         : 2019-12-30 19:48:11
@LastEditors  : 冯浩
@LastEditTime : 2019-12-30 19:58:38
@FilePath     : \FQ统计\界面.py
'''
import tkinter as tk
from tkinter import filedialog

root = tk.Tk()
root.withdraw()

#选择文件夹路径
folderpath = filedialog.askdirectory()
print('folderpath',folderpath,type(folderpath))

#选择多个文件路径
filepath = filedialog.askopenfilenames()
print('filepath',filepath,type(filepath))

'''
folderpath C:/Users/bob/Music <class 'str'>

filepath ('D:/bob_develop/vb/FQ导出/AIC默认字段.csv', 'D:/bob_develop/vb/FQ导出/AIC 
全字段.csv', 'D:/bob_develop/vb/FQ导出/SAP默认字段.csv', 'D:/bob_develop/vb/FQ导出/SAP全字段.csv')
<class 'tuple'>
'''